// import Mock from "mockjs";

// Mock.mock("/api/numdata", "get", {
//   "all|1-100": 100,
//   "online|1-100": 100,
//   "out|1-100": 100,
// });
// let table = {
//   id: "@increment",
//   name: "@cname",
//   group: "@cname",
//   date: "2021/8/11",
//   timeline: "@time('HH:mm')",
//   timeout: "@time('HH:mm')",
//   reason: ["@cname"],
// };
// let tables = [];
// for (let i = 0; i < 20; i++) {
//   tables.push(table);
// }
// Mock.mock("/api/table", "get", tables);

// Mock.mock("/api/person", "get", table);

// Mock.mock("/api/visitor", "get", tables);
let table = {
  id: "@increment",
  name: "@cname",
  group: "@cname",
  date: "2021/8/11",
  timeline: "@time('HH:mm')",
  timeout: "@time('HH:mm')",
  reason: ["@cname"],
};
let tables = [];
for (let i = 0; i < 20; i++) {
  tables.push(table);
}
export default [
  {
    url: "/api/numdata",
    method: "get",
    response: {
      code: 200,
      message: "成功",
      data: {
        "all|1-100": 100,
        "online|1-100": 100,
        "out|1-100": 100,
      },
    },
  },
  {
    url: "/api/table",
    method: "get",
    response: {
      code: 200,
      message: "成功",
      data: tables,
    },
  },
];
